@extends('admin.base')

@section('title') 查看类型 @endsection

@section('caption')
    查看类型
@endsection

@section('content')
    <table class="table datatable-save-state">
        <tr>
            <th>id</th>
            <th>name</th>
            <th>image</th>
            <th>order</th>
            <th>created_at</th>
            <th>updated_at</th>
            <th>操作</th>
        </tr>
        @foreach($types as $type)
            <tr>
                <td>{{$type->id}}</td>
                <td>{{$type->name}}</td>
                <td><img src="/{{$type->image}}" style="width: 40px;height: 40px"></td>
                <td>{{$type->order}}</td>
                <td>{{$type->created_at}}</td>
                <td>{{$type->updated_at}}</td>
                <td class="text-center">
                    <ul class="icons-list">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-menu9"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li><a href="updateType?id={{$type->id}}"><i class="icon-upload text-green-800"></i>更新</a></li>
                                <li><a href="deleteType?id={{$type->id}}"><i class="icon-cross2 text-danger"></i>移除</a></li>
                            </ul>
                        </li>
                    </ul>
                </td>
            </tr>
        @endforeach
    </table>
@endsection

